home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / gawk-3.000 / gawk-3 / gawk-3.0.0 / configure < prev    next >
Encoding:
Text File  |  1995-12-20  |  64.4 KB  |  2,472 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.7 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. mandir='${prefix}/man'
  48.  
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52.  
  53. ac_prev=
  54. for ac_option
  55. do
  56.  
  57.   # If the previous option needs an argument, assign it.
  58.   if test -n "$ac_prev"; then
  59.     eval "$ac_prev=\$ac_option"
  60.     ac_prev=
  61.     continue
  62.   fi
  63.  
  64.   case "$ac_option" in
  65.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66.   *) ac_optarg= ;;
  67.   esac
  68.  
  69.   # Accept the important Cygnus configure options, so we can diagnose typos.
  70.  
  71.   case "$ac_option" in
  72.  
  73.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  74.     ac_prev=bindir ;;
  75.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  76.     bindir="$ac_optarg" ;;
  77.  
  78.   -build | --build | --buil | --bui | --bu)
  79.     ac_prev=build ;;
  80.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  81.     build="$ac_optarg" ;;
  82.  
  83.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  84.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  85.     ac_prev=cache_file ;;
  86.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  87.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  88.     cache_file="$ac_optarg" ;;
  89.  
  90.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  91.     ac_prev=datadir ;;
  92.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  93.   | --da=*)
  94.     datadir="$ac_optarg" ;;
  95.  
  96.   -disable-* | --disable-*)
  97.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  98.     # Reject names that are not valid shell variable names.
  99.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  100.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  101.     fi
  102.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  103.     eval "enable_${ac_feature}=no" ;;
  104.  
  105.   -enable-* | --enable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     case "$ac_option" in
  113.       *=*) ;;
  114.       *) ac_optarg=yes ;;
  115.     esac
  116.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  117.  
  118.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  119.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  120.   | --exec | --exe | --ex)
  121.     ac_prev=exec_prefix ;;
  122.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  123.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  124.   | --exec=* | --exe=* | --ex=*)
  125.     exec_prefix="$ac_optarg" ;;
  126.  
  127.   -gas | --gas | --ga | --g)
  128.     # Obsolete; use --with-gas.
  129.     with_gas=yes ;;
  130.  
  131.   -help | --help | --hel | --he)
  132.     # Omit some internal or obsolete options to make the list less imposing.
  133.     # This message is too long to be a string in the A/UX 3.1 sh.
  134.     cat << EOF
  135. Usage: configure [options] [host]
  136. Options: [defaults in brackets after descriptions]
  137. Configuration:
  138.   --cache-file=FILE       cache test results in FILE
  139.   --help                  print this message
  140.   --no-create             do not create output files
  141.   --quiet, --silent       do not print \`checking...' messages
  142.   --version               print the version of autoconf that created configure
  143. Directory and file names:
  144.   --prefix=PREFIX         install architecture-independent files in PREFIX
  145.                           [$ac_default_prefix]
  146.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  147.                           [same as prefix]
  148.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  149.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  150.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  151.   --datadir=DIR           read-only architecture-independent data in DIR
  152.                           [PREFIX/share]
  153.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  154.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  155.                           [PREFIX/com]
  156.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  157.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  158.   --includedir=DIR        C header files in DIR [PREFIX/include]
  159.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  160.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  161.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  162.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  163.   --program-prefix=PREFIX prepend PREFIX to installed program names
  164.   --program-suffix=SUFFIX append SUFFIX to installed program names
  165.   --program-transform-name=PROGRAM
  166.                           run sed PROGRAM on installed program names
  167. EOF
  168.     cat << EOF
  169. Host type:
  170.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  171.   --host=HOST             configure for HOST [guessed]
  172.   --target=TARGET         configure for TARGET [TARGET=HOST]
  173. Features and packages:
  174.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  175.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  176.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  177.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  178.   --x-includes=DIR        X include files are in DIR
  179.   --x-libraries=DIR       X library files are in DIR
  180. EOF
  181.     if test -n "$ac_help"; then
  182.       echo "--enable and --with options recognized:$ac_help"
  183.     fi
  184.     exit 0 ;;
  185.  
  186.   -host | --host | --hos | --ho)
  187.     ac_prev=host ;;
  188.   -host=* | --host=* | --hos=* | --ho=*)
  189.     host="$ac_optarg" ;;
  190.  
  191.   -includedir | --includedir | --includedi | --included | --include \
  192.   | --includ | --inclu | --incl | --inc)
  193.     ac_prev=includedir ;;
  194.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  195.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  196.     includedir="$ac_optarg" ;;
  197.  
  198.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  199.     ac_prev=infodir ;;
  200.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  201.     infodir="$ac_optarg" ;;
  202.  
  203.   -libdir | --libdir | --libdi | --libd)
  204.     ac_prev=libdir ;;
  205.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  206.     libdir="$ac_optarg" ;;
  207.  
  208.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  209.   | --libexe | --libex | --libe)
  210.     ac_prev=libexecdir ;;
  211.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  212.   | --libexe=* | --libex=* | --libe=*)
  213.     libexecdir="$ac_optarg" ;;
  214.  
  215.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  216.   | --localstate | --localstat | --localsta | --localst \
  217.   | --locals | --local | --loca | --loc | --lo)
  218.     ac_prev=localstatedir ;;
  219.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  220.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  221.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  222.     localstatedir="$ac_optarg" ;;
  223.  
  224.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  225.     ac_prev=mandir ;;
  226.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  227.     mandir="$ac_optarg" ;;
  228.  
  229.   -nfp | --nfp | --nf)
  230.     # Obsolete; use --without-fp.
  231.     with_fp=no ;;
  232.  
  233.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  234.   | --no-cr | --no-c)
  235.     no_create=yes ;;
  236.  
  237.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  238.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  239.     no_recursion=yes ;;
  240.  
  241.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  242.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  243.   | --oldin | --oldi | --old | --ol | --o)
  244.     ac_prev=oldincludedir ;;
  245.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  246.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  247.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  248.     oldincludedir="$ac_optarg" ;;
  249.  
  250.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  251.     ac_prev=prefix ;;
  252.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  253.     prefix="$ac_optarg" ;;
  254.  
  255.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  256.   | --program-pre | --program-pr | --program-p)
  257.     ac_prev=program_prefix ;;
  258.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  259.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  260.     program_prefix="$ac_optarg" ;;
  261.  
  262.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  263.   | --program-suf | --program-su | --program-s)
  264.     ac_prev=program_suffix ;;
  265.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  266.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  267.     program_suffix="$ac_optarg" ;;
  268.  
  269.   -program-transform-name | --program-transform-name \
  270.   | --program-transform-nam | --program-transform-na \
  271.   | --program-transform-n | --program-transform- \
  272.   | --program-transform | --program-transfor \
  273.   | --program-transfo | --program-transf \
  274.   | --program-trans | --program-tran \
  275.   | --progr-tra | --program-tr | --program-t)
  276.     ac_prev=program_transform_name ;;
  277.   -program-transform-name=* | --program-transform-name=* \
  278.   | --program-transform-nam=* | --program-transform-na=* \
  279.   | --program-transform-n=* | --program-transform-=* \
  280.   | --program-transform=* | --program-transfor=* \
  281.   | --program-transfo=* | --program-transf=* \
  282.   | --program-trans=* | --program-tran=* \
  283.   | --progr-tra=* | --program-tr=* | --program-t=*)
  284.     program_transform_name="$ac_optarg" ;;
  285.  
  286.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  287.   | -silent | --silent | --silen | --sile | --sil)
  288.     silent=yes ;;
  289.  
  290.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  291.     ac_prev=sbindir ;;
  292.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  293.   | --sbi=* | --sb=*)
  294.     sbindir="$ac_optarg" ;;
  295.  
  296.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  297.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  298.   | --sharedst | --shareds | --shared | --share | --shar \
  299.   | --sha | --sh)
  300.     ac_prev=sharedstatedir ;;
  301.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  302.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  303.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  304.   | --sha=* | --sh=*)
  305.     sharedstatedir="$ac_optarg" ;;
  306.  
  307.   -site | --site | --sit)
  308.     ac_prev=site ;;
  309.   -site=* | --site=* | --sit=*)
  310.     site="$ac_optarg" ;;
  311.  
  312.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  313.     ac_prev=srcdir ;;
  314.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  315.     srcdir="$ac_optarg" ;;
  316.  
  317.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  318.   | --syscon | --sysco | --sysc | --sys | --sy)
  319.     ac_prev=sysconfdir ;;
  320.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  321.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  322.     sysconfdir="$ac_optarg" ;;
  323.  
  324.   -target | --target | --targe | --targ | --tar | --ta | --t)
  325.     ac_prev=target ;;
  326.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  327.     target="$ac_optarg" ;;
  328.  
  329.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  330.     verbose=yes ;;
  331.  
  332.   -version | --version | --versio | --versi | --vers)
  333.     echo "configure generated by autoconf version 2.7"
  334.     exit 0 ;;
  335.  
  336.   -with-* | --with-*)
  337.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  338.     # Reject names that are not valid shell variable names.
  339.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  340.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  341.     fi
  342.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  343.     case "$ac_option" in
  344.       *=*) ;;
  345.       *) ac_optarg=yes ;;
  346.     esac
  347.     eval "with_${ac_package}='$ac_optarg'" ;;
  348.  
  349.   -without-* | --without-*)
  350.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  351.     # Reject names that are not valid shell variable names.
  352.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  353.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  354.     fi
  355.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  356.     eval "with_${ac_package}=no" ;;
  357.  
  358.   --x)
  359.     # Obsolete; use --with-x.
  360.     with_x=yes ;;
  361.  
  362.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  363.   | --x-incl | --x-inc | --x-in | --x-i)
  364.     ac_prev=x_includes ;;
  365.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  366.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  367.     x_includes="$ac_optarg" ;;
  368.  
  369.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  370.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  371.     ac_prev=x_libraries ;;
  372.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  373.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  374.     x_libraries="$ac_optarg" ;;
  375.  
  376.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  377.     ;;
  378.  
  379.   *)
  380.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  381.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  382.     fi
  383.     if test "x$nonopt" != xNONE; then
  384.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  385.     fi
  386.     nonopt="$ac_option"
  387.     ;;
  388.  
  389.   esac
  390. done
  391.  
  392. if test -n "$ac_prev"; then
  393.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  394. fi
  395.  
  396. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  397.  
  398. # File descriptor usage:
  399. # 0 standard input
  400. # 1 file creation
  401. # 2 errors and warnings
  402. # 3 some systems may open it to /dev/tty
  403. # 4 used on the Kubota Titan
  404. # 6 checking for... messages and results
  405. # 5 compiler messages saved in config.log
  406. if test "$silent" = yes; then
  407.   exec 6>/dev/null
  408. else
  409.   exec 6>&1
  410. fi
  411. exec 5>./config.log
  412.  
  413. echo "\
  414. This file contains any messages produced by compilers while
  415. running configure, to aid debugging if configure makes a mistake.
  416. " 1>&5
  417.  
  418. # Strip out --no-create and --no-recursion so they do not pile up.
  419. # Also quote any args containing shell metacharacters.
  420. ac_configure_args=
  421. for ac_arg
  422. do
  423.   case "$ac_arg" in
  424.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425.   | --no-cr | --no-c) ;;
  426.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  428.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  429.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  430.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  431.   esac
  432. done
  433.  
  434. # NLS nuisances.
  435. # Only set LANG and LC_ALL to C if already set.
  436. # These must not be set unconditionally because not all systems understand
  437. # e.g. LANG=C (notably SCO).
  438. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  439. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  440.  
  441. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  442. rm -rf conftest* confdefs.h
  443. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  444. echo > confdefs.h
  445.  
  446. # A filename unique to this package, relative to the directory that
  447. # configure is in, which we can look for to find out if srcdir is correct.
  448. ac_unique_file=awk.h
  449.  
  450. # Find the source files, if location was not specified.
  451. if test -z "$srcdir"; then
  452.   ac_srcdir_defaulted=yes
  453.   # Try the directory containing this script, then its parent.
  454.   ac_prog=$0
  455.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  456.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  457.   srcdir=$ac_confdir
  458.   if test ! -r $srcdir/$ac_unique_file; then
  459.     srcdir=..
  460.   fi
  461. else
  462.   ac_srcdir_defaulted=no
  463. fi
  464. if test ! -r $srcdir/$ac_unique_file; then
  465.   if test "$ac_srcdir_defaulted" = yes; then
  466.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  467.   else
  468.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  469.   fi
  470. fi
  471. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  472.  
  473. # Prefer explicitly selected file to automatically selected ones.
  474. if test -z "$CONFIG_SITE"; then
  475.   if test "x$prefix" != xNONE; then
  476.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  477.   else
  478.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  479.   fi
  480. fi
  481. for ac_site_file in $CONFIG_SITE; do
  482.   if test -r "$ac_site_file"; then
  483.     echo "loading site script $ac_site_file"
  484.     . "$ac_site_file"
  485.   fi
  486. done
  487.  
  488. if test -r "$cache_file"; then
  489.   echo "loading cache $cache_file"
  490.   . $cache_file
  491. else
  492.   echo "creating cache $cache_file"
  493.   > $cache_file
  494. fi
  495.  
  496. ac_ext=c
  497. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  498. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  499. $CPP $CPPFLAGS'
  500. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  501. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  502. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  503. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  504.  
  505. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  506.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  507.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  508.     ac_n= ac_c='
  509. ' ac_t='    '
  510.   else
  511.     ac_n=-n ac_c= ac_t=
  512.   fi
  513. else
  514.   ac_n= ac_c='\c' ac_t=
  515. fi
  516.  
  517.  
  518.  
  519.  
  520.  
  521. for ac_prog in 'bison -y' byacc
  522. do
  523. # Extract the first word of "$ac_prog", so it can be a program name with args.
  524. set dummy $ac_prog; ac_word=$2
  525. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  526. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  527.   echo $ac_n "(cached) $ac_c" 1>&6
  528. else
  529.   if test -n "$YACC"; then
  530.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  531. else
  532.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  533.   for ac_dir in $PATH; do
  534.     test -z "$ac_dir" && ac_dir=.
  535.     if test -f $ac_dir/$ac_word; then
  536.       ac_cv_prog_YACC="$ac_prog"
  537.       break
  538.     fi
  539.   done
  540.   IFS="$ac_save_ifs"
  541. fi
  542. fi
  543. YACC="$ac_cv_prog_YACC"
  544. if test -n "$YACC"; then
  545.   echo "$ac_t""$YACC" 1>&6
  546. else
  547.   echo "$ac_t""no" 1>&6
  548. fi
  549.  
  550. test -n "$YACC" && break
  551. done
  552. test -n "$YACC" || YACC="yacc"
  553.  
  554. # Extract the first word of "gcc", so it can be a program name with args.
  555. set dummy gcc; ac_word=$2
  556. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  557. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  558.   echo $ac_n "(cached) $ac_c" 1>&6
  559. else
  560.   if test -n "$CC"; then
  561.   ac_cv_prog_CC="$CC" # Let the user override the test.
  562. else
  563.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  564.   for ac_dir in $PATH; do
  565.     test -z "$ac_dir" && ac_dir=.
  566.     if test -f $ac_dir/$ac_word; then
  567.       ac_cv_prog_CC="gcc"
  568.       break
  569.     fi
  570.   done
  571.   IFS="$ac_save_ifs"
  572.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  573. fi
  574. fi
  575. CC="$ac_cv_prog_CC"
  576. if test -n "$CC"; then
  577.   echo "$ac_t""$CC" 1>&6
  578. else
  579.   echo "$ac_t""no" 1>&6
  580. fi
  581.  
  582.  
  583. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  584. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  585.   echo $ac_n "(cached) $ac_c" 1>&6
  586. else
  587.   cat > conftest.c <<EOF
  588. #ifdef __GNUC__
  589.   yes;
  590. #endif
  591. EOF
  592. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  593.   ac_cv_prog_gcc=yes
  594. else
  595.   ac_cv_prog_gcc=no
  596. fi
  597. fi
  598.  
  599. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  600. if test $ac_cv_prog_gcc = yes; then
  601.   GCC=yes
  602.   if test "${CFLAGS+set}" != set; then
  603.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  604. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  605.   echo $ac_n "(cached) $ac_c" 1>&6
  606. else
  607.   echo 'void f(){}' > conftest.c
  608. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  609.   ac_cv_prog_gcc_g=yes
  610. else
  611.   ac_cv_prog_gcc_g=no
  612. fi
  613. rm -f conftest*
  614.  
  615. fi
  616.  
  617. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  618.     if test $ac_cv_prog_gcc_g = yes; then
  619.       CFLAGS="-g -O"
  620.     else
  621.       CFLAGS="-O"
  622.     fi
  623.   fi
  624. else
  625.   GCC=
  626.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  627. fi
  628.  
  629. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  630. # On Suns, sometimes $CPP names a directory.
  631. if test -n "$CPP" && test -d "$CPP"; then
  632.   CPP=
  633. fi
  634. if test -z "$CPP"; then
  635. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  636.   echo $ac_n "(cached) $ac_c" 1>&6
  637. else
  638.     # This must be in double quotes, not single quotes, because CPP may get
  639.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  640.   CPP="${CC-cc} -E"
  641.   # On the NeXT, cc -E runs the code through the compiler's parser,
  642.   # not just through cpp.
  643.   cat > conftest.$ac_ext <<EOF
  644. #line 645 "configure"
  645. #include "confdefs.h"
  646. #include <assert.h>
  647. Syntax Error
  648. EOF
  649. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  650. ac_err=`grep -v '^ *+' conftest.out`
  651. if test -z "$ac_err"; then
  652.   :
  653. else
  654.   echo "$ac_err" >&5
  655.   rm -rf conftest*
  656.   CPP="${CC-cc} -E -traditional-cpp"
  657.   cat > conftest.$ac_ext <<EOF
  658. #line 659 "configure"
  659. #include "confdefs.h"
  660. #include <assert.h>
  661. Syntax Error
  662. EOF
  663. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  664. ac_err=`grep -v '^ *+' conftest.out`
  665. if test -z "$ac_err"; then
  666.   :
  667. else
  668.   echo "$ac_err" >&5
  669.   rm -rf conftest*
  670.   CPP=/lib/cpp
  671. fi
  672. rm -f conftest*
  673. fi
  674. rm -f conftest*
  675.   ac_cv_prog_CPP="$CPP"
  676. fi
  677.   CPP="$ac_cv_prog_CPP"
  678. else
  679.   ac_cv_prog_CPP="$CPP"
  680. fi
  681. echo "$ac_t""$CPP" 1>&6
  682.  
  683. ac_aux_dir=
  684. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  685.   if test -f $ac_dir/install-sh; then
  686.     ac_aux_dir=$ac_dir
  687.     ac_install_sh="$ac_aux_dir/install-sh -c"
  688.     break
  689.   elif test -f $ac_dir/install.sh; then
  690.     ac_aux_dir=$ac_dir
  691.     ac_install_sh="$ac_aux_dir/install.sh -c"
  692.     break
  693.   fi
  694. done
  695. if test -z "$ac_aux_dir"; then
  696.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  697. fi
  698. ac_config_guess=$ac_aux_dir/config.guess
  699. ac_config_sub=$ac_aux_dir/config.sub
  700. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  701.  
  702. # Find a good install program.  We prefer a C program (faster),
  703. # so one script is as good as another.  But avoid the broken or
  704. # incompatible versions:
  705. # SysV /etc/install, /usr/sbin/install
  706. # SunOS /usr/etc/install
  707. # IRIX /sbin/install
  708. # AIX /bin/install
  709. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  710. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  711. # ./install, which can be erroneously created by make from ./install.sh.
  712. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  713. if test -z "$INSTALL"; then
  714. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  715.   echo $ac_n "(cached) $ac_c" 1>&6
  716. else
  717.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  718.   for ac_dir in $PATH; do
  719.     # Account for people who put trailing slashes in PATH elements.
  720.     case "$ac_dir/" in
  721.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  722.     *)
  723.       # OSF1 and SCO ODT 3.0 have their own names for install.
  724.       for ac_prog in ginstall installbsd scoinst install; do
  725.         if test -f $ac_dir/$ac_prog; then
  726.       if test $ac_prog = install &&
  727.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  728.         # AIX install.  It has an incompatible calling convention.
  729.         # OSF/1 installbsd also uses dspmsg, but is usable.
  730.         :
  731.       else
  732.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  733.         break 2
  734.       fi
  735.     fi
  736.       done
  737.       ;;
  738.     esac
  739.   done
  740.   IFS="$ac_save_ifs"
  741.  
  742. fi
  743.   if test "${ac_cv_path_install+set}" = set; then
  744.     INSTALL="$ac_cv_path_install"
  745.   else
  746.     # As a last resort, use the slow shell script.  We don't cache a
  747.     # path for INSTALL within a source directory, because that will
  748.     # break other packages using the cache if that directory is
  749.     # removed, or if the path is relative.
  750.     INSTALL="$ac_install_sh"
  751.   fi
  752. fi
  753. echo "$ac_t""$INSTALL" 1>&6
  754.  
  755. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  756. # It thinks the first close brace ends the variable substitution.
  757. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  758.  
  759. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  760.  
  761. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  762. set dummy ${MAKE-make}; ac_make=$2
  763. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  764.   echo $ac_n "(cached) $ac_c" 1>&6
  765. else
  766.   cat > conftestmake <<\EOF
  767. all:
  768.     @echo 'ac_maketemp="${MAKE}"'
  769. EOF
  770. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  771. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  772. if test -n "$ac_maketemp"; then
  773.   eval ac_cv_prog_make_${ac_make}_set=yes
  774. else
  775.   eval ac_cv_prog_make_${ac_make}_set=no
  776. fi
  777. rm -f conftestmake
  778. fi
  779. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  780.   echo "$ac_t""yes" 1>&6
  781.   SET_MAKE=
  782. else
  783.   echo "$ac_t""no" 1>&6
  784.   SET_MAKE="MAKE=${MAKE-make}"
  785. fi
  786.  
  787.  
  788. if test "$CFLAGS" = ""
  789. then
  790.     if test "$GCC" = yes
  791.     then
  792.         CFLAGS="-g -O"
  793.     else
  794.         CFLAGS="-O"
  795.     fi
  796. fi
  797.  
  798.  
  799. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  800. cat > conftest.$ac_ext <<EOF
  801. #line 802 "configure"
  802. #include "confdefs.h"
  803. #ifdef _AIX
  804.   yes
  805. #endif
  806.  
  807. EOF
  808. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  809.   egrep "yes" >/dev/null 2>&1; then
  810.   rm -rf conftest*
  811.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  812. #define _ALL_SOURCE 1
  813. EOF
  814.  
  815. else
  816.   rm -rf conftest*
  817.   echo "$ac_t""no" 1>&6
  818. fi
  819. rm -f conftest*
  820.  
  821.  
  822. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  823. if test -d /etc/conf/kconfig.d &&
  824.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  825. then
  826.   echo "$ac_t""yes" 1>&6
  827.   ISC=yes # If later tests want to check for ISC.
  828.   cat >> confdefs.h <<\EOF
  829. #define _POSIX_SOURCE 1
  830. EOF
  831.  
  832.   if test "$GCC" = yes; then
  833.     CC="$CC -posix"
  834.   else
  835.     CC="$CC -Xp"
  836.   fi
  837. else
  838.   echo "$ac_t""no" 1>&6
  839.   ISC=
  840. fi
  841.  
  842. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  843. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  844. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  845.   echo $ac_n "(cached) $ac_c" 1>&6
  846. else
  847.   cat > conftest.$ac_ext <<EOF
  848. #line 849 "configure"
  849. #include "confdefs.h"
  850. #include <minix/config.h>
  851. EOF
  852. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  853. ac_err=`grep -v '^ *+' conftest.out`
  854. if test -z "$ac_err"; then
  855.   rm -rf conftest*
  856.   eval "ac_cv_header_$ac_safe=yes"
  857. else
  858.   echo "$ac_err" >&5
  859.   rm -rf conftest*
  860.   eval "ac_cv_header_$ac_safe=no"
  861. fi
  862. rm -f conftest*
  863. fi
  864. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  865.   echo "$ac_t""yes" 1>&6
  866.   MINIX=yes
  867. else
  868.   echo "$ac_t""no" 1>&6
  869. MINIX=
  870. fi
  871.  
  872. if test "$MINIX" = yes; then
  873.   cat >> confdefs.h <<\EOF
  874. #define _POSIX_SOURCE 1
  875. EOF
  876.  
  877.   cat >> confdefs.h <<\EOF
  878. #define _POSIX_1_SOURCE 2
  879. EOF
  880.  
  881.   cat >> confdefs.h <<\EOF
  882. #define _MINIX 1
  883. EOF
  884.  
  885. fi
  886.  
  887.  
  888. # If we cannot run a trivial program, we must be cross compiling.
  889. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  890. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  891.   echo $ac_n "(cached) $ac_c" 1>&6
  892. else
  893.   if test "$cross_compiling" = yes; then
  894.   ac_cv_c_cross=yes
  895. else
  896. cat > conftest.$ac_ext <<EOF
  897. #line 898 "configure"
  898. #include "confdefs.h"
  899. main(){return(0);}
  900. EOF
  901. eval $ac_link
  902. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  903.   ac_cv_c_cross=no
  904. else
  905.   ac_cv_c_cross=yes
  906. fi
  907. fi
  908. rm -fr conftest*
  909. fi
  910.  
  911. echo "$ac_t""$ac_cv_c_cross" 1>&6
  912. cross_compiling=$ac_cv_c_cross
  913.  
  914. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  915. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  916.   echo $ac_n "(cached) $ac_c" 1>&6
  917. else
  918.   cat > conftest.$ac_ext <<EOF
  919. #line 920 "configure"
  920. #include "confdefs.h"
  921. #include <stdlib.h>
  922. #include <stdarg.h>
  923. #include <string.h>
  924. #include <float.h>
  925. EOF
  926. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  927. ac_err=`grep -v '^ *+' conftest.out`
  928. if test -z "$ac_err"; then
  929.   rm -rf conftest*
  930.   ac_cv_header_stdc=yes
  931. else
  932.   echo "$ac_err" >&5
  933.   rm -rf conftest*
  934.   ac_cv_header_stdc=no
  935. fi
  936. rm -f conftest*
  937.  
  938. if test $ac_cv_header_stdc = yes; then
  939.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  940. cat > conftest.$ac_ext <<EOF
  941. #line 942 "configure"
  942. #include "confdefs.h"
  943. #include <string.h>
  944. EOF
  945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  946.   egrep "memchr" >/dev/null 2>&1; then
  947.   :
  948. else
  949.   rm -rf conftest*
  950.   ac_cv_header_stdc=no
  951. fi
  952. rm -f conftest*
  953.  
  954. fi
  955.  
  956. if test $ac_cv_header_stdc = yes; then
  957.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  958. cat > conftest.$ac_ext <<EOF
  959. #line 960 "configure"
  960. #include "confdefs.h"
  961. #include <stdlib.h>
  962. EOF
  963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  964.   egrep "free" >/dev/null 2>&1; then
  965.   :
  966. else
  967.   rm -rf conftest*
  968.   ac_cv_header_stdc=no
  969. fi
  970. rm -f conftest*
  971.  
  972. fi
  973.  
  974. if test $ac_cv_header_stdc = yes; then
  975.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  976. if test "$cross_compiling" = yes; then
  977.   :
  978. else
  979. cat > conftest.$ac_ext <<EOF
  980. #line 981 "configure"
  981. #include "confdefs.h"
  982. #include <ctype.h>
  983. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  984. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  985. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  986. int main () { int i; for (i = 0; i < 256; i++)
  987. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  988. exit (0); }
  989.  
  990. EOF
  991. eval $ac_link
  992. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  993.   :
  994. else
  995.   ac_cv_header_stdc=no
  996. fi
  997. fi
  998. rm -fr conftest*
  999. fi
  1000. fi
  1001.  
  1002. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1003. if test $ac_cv_header_stdc = yes; then
  1004.   cat >> confdefs.h <<\EOF
  1005. #define STDC_HEADERS 1
  1006. EOF
  1007.  
  1008. fi
  1009.  
  1010. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1011. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1012.   echo $ac_n "(cached) $ac_c" 1>&6
  1013. else
  1014.   cat > conftest.$ac_ext <<EOF
  1015. #line 1016 "configure"
  1016. #include "confdefs.h"
  1017. #include <sys/types.h>
  1018. #include <sys/wait.h>
  1019. #ifndef WEXITSTATUS
  1020. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1021. #endif
  1022. #ifndef WIFEXITED
  1023. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1024. #endif
  1025. int main() { return 0; }
  1026. int t() {
  1027. int s;
  1028. wait (&s);
  1029. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1030. ; return 0; }
  1031. EOF
  1032. if eval $ac_compile; then
  1033.   rm -rf conftest*
  1034.   ac_cv_header_sys_wait_h=yes
  1035. else
  1036.   rm -rf conftest*
  1037.   ac_cv_header_sys_wait_h=no
  1038. fi
  1039. rm -f conftest*
  1040.  
  1041. fi
  1042.  
  1043. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1044. if test $ac_cv_header_sys_wait_h = yes; then
  1045.   cat >> confdefs.h <<\EOF
  1046. #define HAVE_SYS_WAIT_H 1
  1047. EOF
  1048.  
  1049. fi
  1050.  
  1051. for ac_hdr in limits.h stdarg.h unistd.h signum.h sys/param.h string.h
  1052. do
  1053. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1054. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1055. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1056.   echo $ac_n "(cached) $ac_c" 1>&6
  1057. else
  1058.   cat > conftest.$ac_ext <<EOF
  1059. #line 1060 "configure"
  1060. #include "confdefs.h"
  1061. #include <$ac_hdr>
  1062. EOF
  1063. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1064. ac_err=`grep -v '^ *+' conftest.out`
  1065. if test -z "$ac_err"; then
  1066.   rm -rf conftest*
  1067.   eval "ac_cv_header_$ac_safe=yes"
  1068. else
  1069.   echo "$ac_err" >&5
  1070.   rm -rf conftest*
  1071.   eval "ac_cv_header_$ac_safe=no"
  1072. fi
  1073. rm -f conftest*
  1074. fi
  1075. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1076.   echo "$ac_t""yes" 1>&6
  1077.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1078.   cat >> confdefs.h <<EOF
  1079. #define $ac_tr_hdr 1
  1080. EOF
  1081.  
  1082. else
  1083.   echo "$ac_t""no" 1>&6
  1084. fi
  1085. done
  1086.  
  1087. if test "$ac_cv_header_string_h" = yes
  1088. then
  1089.     for ac_hdr in memory.h
  1090. do
  1091. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1092. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1093. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1094.   echo $ac_n "(cached) $ac_c" 1>&6
  1095. else
  1096.   cat > conftest.$ac_ext <<EOF
  1097. #line 1098 "configure"
  1098. #include "confdefs.h"
  1099. #include <$ac_hdr>
  1100. EOF
  1101. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1102. ac_err=`grep -v '^ *+' conftest.out`
  1103. if test -z "$ac_err"; then
  1104.   rm -rf conftest*
  1105.   eval "ac_cv_header_$ac_safe=yes"
  1106. else
  1107.   echo "$ac_err" >&5
  1108.   rm -rf conftest*
  1109.   eval "ac_cv_header_$ac_safe=no"
  1110. fi
  1111. rm -f conftest*
  1112. fi
  1113. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1114.   echo "$ac_t""yes" 1>&6
  1115.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1116.   cat >> confdefs.h <<EOF
  1117. #define $ac_tr_hdr 1
  1118. EOF
  1119.  
  1120. else
  1121.   echo "$ac_t""no" 1>&6
  1122. fi
  1123. done
  1124.  
  1125. else
  1126.     for ac_hdr in strings.h
  1127. do
  1128. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1129. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1130. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1131.   echo $ac_n "(cached) $ac_c" 1>&6
  1132. else
  1133.   cat > conftest.$ac_ext <<EOF
  1134. #line 1135 "configure"
  1135. #include "confdefs.h"
  1136. #include <$ac_hdr>
  1137. EOF
  1138. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1139. ac_err=`grep -v '^ *+' conftest.out`
  1140. if test -z "$ac_err"; then
  1141.   rm -rf conftest*
  1142.   eval "ac_cv_header_$ac_safe=yes"
  1143. else
  1144.   echo "$ac_err" >&5
  1145.   rm -rf conftest*
  1146.   eval "ac_cv_header_$ac_safe=no"
  1147. fi
  1148. rm -f conftest*
  1149. fi
  1150. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1151.   echo "$ac_t""yes" 1>&6
  1152.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1153.   cat >> confdefs.h <<EOF
  1154. #define $ac_tr_hdr 1
  1155. EOF
  1156.  
  1157. else
  1158.   echo "$ac_t""no" 1>&6
  1159. fi
  1160. done
  1161.  
  1162. fi
  1163.  
  1164. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1165. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1166.   echo $ac_n "(cached) $ac_c" 1>&6
  1167. else
  1168.   cat > conftest.$ac_ext <<EOF
  1169. #line 1170 "configure"
  1170. #include "confdefs.h"
  1171. #include <sys/types.h>
  1172. #if STDC_HEADERS
  1173. #include <stdlib.h>
  1174. #endif
  1175. EOF
  1176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1177.   egrep "pid_t" >/dev/null 2>&1; then
  1178.   rm -rf conftest*
  1179.   ac_cv_type_pid_t=yes
  1180. else
  1181.   rm -rf conftest*
  1182.   ac_cv_type_pid_t=no
  1183. fi
  1184. rm -f conftest*
  1185.  
  1186. fi
  1187. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1188. if test $ac_cv_type_pid_t = no; then
  1189.   cat >> confdefs.h <<\EOF
  1190. #define pid_t int
  1191. EOF
  1192.  
  1193. fi
  1194.  
  1195. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1196. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1197.   echo $ac_n "(cached) $ac_c" 1>&6
  1198. else
  1199.   cat > conftest.$ac_ext <<EOF
  1200. #line 1201 "configure"
  1201. #include "confdefs.h"
  1202. #include <sys/types.h>
  1203. #include <signal.h>
  1204. #ifdef signal
  1205. #undef signal
  1206. #endif
  1207. #ifdef __cplusplus
  1208. extern "C" void (*signal (int, void (*)(int)))(int);
  1209. #else
  1210. void (*signal ()) ();
  1211. #endif
  1212.  
  1213. int main() { return 0; }
  1214. int t() {
  1215. int i;
  1216. ; return 0; }
  1217. EOF
  1218. if eval $ac_compile; then
  1219.   rm -rf conftest*
  1220.   ac_cv_type_signal=void
  1221. else
  1222.   rm -rf conftest*
  1223.   ac_cv_type_signal=int
  1224. fi
  1225. rm -f conftest*
  1226.  
  1227. fi
  1228.  
  1229. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1230. cat >> confdefs.h <<EOF
  1231. #define RETSIGTYPE $ac_cv_type_signal
  1232. EOF
  1233.  
  1234.  
  1235. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1236. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1237.   echo $ac_n "(cached) $ac_c" 1>&6
  1238. else
  1239.   cat > conftest.$ac_ext <<EOF
  1240. #line 1241 "configure"
  1241. #include "confdefs.h"
  1242. #include <sys/types.h>
  1243. #if STDC_HEADERS
  1244. #include <stdlib.h>
  1245. #endif
  1246. EOF
  1247. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1248.   egrep "size_t" >/dev/null 2>&1; then
  1249.   rm -rf conftest*
  1250.   ac_cv_type_size_t=yes
  1251. else
  1252.   rm -rf conftest*
  1253.   ac_cv_type_size_t=no
  1254. fi
  1255. rm -f conftest*
  1256.  
  1257. fi
  1258. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1259. if test $ac_cv_type_size_t = no; then
  1260.   cat >> confdefs.h <<\EOF
  1261. #define size_t unsigned
  1262. EOF
  1263.  
  1264. fi
  1265.  
  1266. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1267. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1268.   echo $ac_n "(cached) $ac_c" 1>&6
  1269. else
  1270.   cat > conftest.$ac_ext <<EOF
  1271. #line 1272 "configure"
  1272. #include "confdefs.h"
  1273. #include <sys/types.h>
  1274. EOF
  1275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1276.   egrep "uid_t" >/dev/null 2>&1; then
  1277.   rm -rf conftest*
  1278.   ac_cv_type_uid_t=yes
  1279. else
  1280.   rm -rf conftest*
  1281.   ac_cv_type_uid_t=no
  1282. fi
  1283. rm -f conftest*
  1284.  
  1285. fi
  1286.  
  1287. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1288. if test $ac_cv_type_uid_t = no; then
  1289.   cat >> confdefs.h <<\EOF
  1290. #define uid_t int
  1291. EOF
  1292.  
  1293.   cat >> confdefs.h <<\EOF
  1294. #define gid_t int
  1295. EOF
  1296.  
  1297. fi
  1298.  
  1299. echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
  1300. if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  1301.   echo $ac_n "(cached) $ac_c" 1>&6
  1302. else
  1303.   if test "$cross_compiling" = yes; then
  1304.   ac_cv_type_getgroups=cross
  1305. else
  1306. cat > conftest.$ac_ext <<EOF
  1307. #line 1308 "configure"
  1308. #include "confdefs.h"
  1309.  
  1310. /* Thanks to Mike Rendell for this test.  */
  1311. #include <sys/types.h>
  1312. #define NGID 256
  1313. #undef MAX
  1314. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  1315. main()
  1316. {
  1317.   gid_t gidset[NGID];
  1318.   int i, n;
  1319.   union { gid_t gval; long lval; }  val;
  1320.  
  1321.   val.lval = -1;
  1322.   for (i = 0; i < NGID; i++)
  1323.     gidset[i] = val.gval;
  1324.   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  1325.                  gidset);
  1326.   /* Exit non-zero if getgroups seems to require an array of ints.  This
  1327.      happens when gid_t is short but getgroups modifies an array of ints.  */
  1328.   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  1329. }
  1330.  
  1331. EOF
  1332. eval $ac_link
  1333. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1334.     ac_cv_type_getgroups=gid_t
  1335. else
  1336.   ac_cv_type_getgroups=int
  1337. fi
  1338. fi
  1339. rm -fr conftest*
  1340. if test $ac_cv_type_getgroups = cross; then
  1341.         cat > conftest.$ac_ext <<EOF
  1342. #line 1343 "configure"
  1343. #include "confdefs.h"
  1344. #include <unistd.h>
  1345. EOF
  1346. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1347.   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  1348.   rm -rf conftest*
  1349.   ac_cv_type_getgroups=gid_t
  1350. else
  1351.   rm -rf conftest*
  1352.   ac_cv_type_getgroups=int
  1353. fi
  1354. rm -f conftest*
  1355.  
  1356. fi
  1357. fi
  1358.  
  1359. echo "$ac_t""$ac_cv_type_getgroups" 1>&6
  1360. cat >> confdefs.h <<EOF
  1361. #define GETGROUPS_T $ac_cv_type_getgroups
  1362. EOF
  1363.  
  1364.  
  1365. cat > conftest.$ac_ext <<EOF
  1366. #line 1367 "configure"
  1367. #include "confdefs.h"
  1368. #include <stdio.h>
  1369. EOF
  1370. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1371.   egrep "int.*sprintf" >/dev/null 2>&1; then
  1372.   rm -rf conftest*
  1373.   cat >> confdefs.h <<\EOF
  1374. #define SPRINTF_RET int
  1375. EOF
  1376.  
  1377. else
  1378.   rm -rf conftest*
  1379.   cat >> confdefs.h <<\EOF
  1380. #define SPRINTF_RET char *
  1381. EOF
  1382.  
  1383. fi
  1384. rm -f conftest*
  1385.  
  1386.  
  1387. if test "$YACC" = "bison -y" ||
  1388.  { test -f $srcdir/awktab.c && grep 'alloca *(' $srcdir/awktab.c > /dev/null; }
  1389. then
  1390.     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1391. # for constant arguments.  Useless!
  1392. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1393. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1394.   echo $ac_n "(cached) $ac_c" 1>&6
  1395. else
  1396.   cat > conftest.$ac_ext <<EOF
  1397. #line 1398 "configure"
  1398. #include "confdefs.h"
  1399. #include <alloca.h>
  1400. int main() { return 0; }
  1401. int t() {
  1402. char *p = alloca(2 * sizeof(int));
  1403. ; return 0; }
  1404. EOF
  1405. if eval $ac_link; then
  1406.   rm -rf conftest*
  1407.   ac_cv_header_alloca_h=yes
  1408. else
  1409.   rm -rf conftest*
  1410.   ac_cv_header_alloca_h=no
  1411. fi
  1412. rm -f conftest*
  1413.  
  1414. fi
  1415.  
  1416. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1417. if test $ac_cv_header_alloca_h = yes; then
  1418.   cat >> confdefs.h <<\EOF
  1419. #define HAVE_ALLOCA_H 1
  1420. EOF
  1421.  
  1422. fi
  1423.  
  1424. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1425. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1426.   echo $ac_n "(cached) $ac_c" 1>&6
  1427. else
  1428.   cat > conftest.$ac_ext <<EOF
  1429. #line 1430 "configure"
  1430. #include "confdefs.h"
  1431.  
  1432. #ifdef __GNUC__
  1433. # define alloca __builtin_alloca
  1434. #else
  1435. # if HAVE_ALLOCA_H
  1436. #  include <alloca.h>
  1437. # else
  1438. #  ifdef _AIX
  1439.  #pragma alloca
  1440. #  else
  1441. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1442. char *alloca ();
  1443. #   endif
  1444. #  endif
  1445. # endif
  1446. #endif
  1447.  
  1448. int main() { return 0; }
  1449. int t() {
  1450. char *p = (char *) alloca(1);
  1451. ; return 0; }
  1452. EOF
  1453. if eval $ac_link; then
  1454.   rm -rf conftest*
  1455.   ac_cv_func_alloca=yes
  1456. else
  1457.   rm -rf conftest*
  1458.   ac_cv_func_alloca=no
  1459. fi
  1460. rm -f conftest*
  1461.  
  1462. fi
  1463.  
  1464. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1465. if test $ac_cv_func_alloca = yes; then
  1466.   cat >> confdefs.h <<\EOF
  1467. #define HAVE_ALLOCA 1
  1468. EOF
  1469.  
  1470. fi
  1471.  
  1472. if test $ac_cv_func_alloca = no; then
  1473.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1474.   # that cause trouble.  Some versions do not even contain alloca or
  1475.   # contain a buggy version.  If you still want to use their alloca,
  1476.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1477.   ALLOCA=alloca.o
  1478.   cat >> confdefs.h <<\EOF
  1479. #define C_ALLOCA 1
  1480. EOF
  1481.  
  1482.  
  1483. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1484. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1485.   echo $ac_n "(cached) $ac_c" 1>&6
  1486. else
  1487.   cat > conftest.$ac_ext <<EOF
  1488. #line 1489 "configure"
  1489. #include "confdefs.h"
  1490. #if defined(CRAY) && ! defined(CRAY2)
  1491. webecray
  1492. #else
  1493. wenotbecray
  1494. #endif
  1495.  
  1496. EOF
  1497. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1498.   egrep "webecray" >/dev/null 2>&1; then
  1499.   rm -rf conftest*
  1500.   ac_cv_os_cray=yes
  1501. else
  1502.   rm -rf conftest*
  1503.   ac_cv_os_cray=no
  1504. fi
  1505. rm -f conftest*
  1506.  
  1507. fi
  1508.  
  1509. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1510. if test $ac_cv_os_cray = yes; then
  1511. for ac_func in _getb67 GETB67 getb67; do
  1512.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1513. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1514.   echo $ac_n "(cached) $ac_c" 1>&6
  1515. else
  1516.   cat > conftest.$ac_ext <<EOF
  1517. #line 1518 "configure"
  1518. #include "confdefs.h"
  1519. /* System header to define __stub macros and hopefully few prototypes,
  1520.     which can conflict with char $ac_func(); below.  */
  1521. #include <assert.h>
  1522. /* Override any gcc2 internal prototype to avoid an error.  */
  1523. char $ac_func();
  1524.  
  1525. int main() { return 0; }
  1526. int t() {
  1527.  
  1528. /* The GNU C library defines this for functions which it implements
  1529.     to always fail with ENOSYS.  Some functions are actually named
  1530.     something starting with __ and the normal name is an alias.  */
  1531. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1532. choke me
  1533. #else
  1534. $ac_func();
  1535. #endif
  1536.  
  1537. ; return 0; }
  1538. EOF
  1539. if eval $ac_link; then
  1540.   rm -rf conftest*
  1541.   eval "ac_cv_func_$ac_func=yes"
  1542. else
  1543.   rm -rf conftest*
  1544.   eval "ac_cv_func_$ac_func=no"
  1545. fi
  1546. rm -f conftest*
  1547.  
  1548. fi
  1549. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1550.   echo "$ac_t""yes" 1>&6
  1551.   cat >> confdefs.h <<EOF
  1552. #define CRAY_STACKSEG_END $ac_func
  1553. EOF
  1554.  
  1555.   break
  1556. else
  1557.   echo "$ac_t""no" 1>&6
  1558. fi
  1559.  
  1560. done
  1561. fi
  1562.  
  1563. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1564. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1565.   echo $ac_n "(cached) $ac_c" 1>&6
  1566. else
  1567.   if test "$cross_compiling" = yes; then
  1568.   ac_cv_c_stack_direction=0
  1569. else
  1570. cat > conftest.$ac_ext <<EOF
  1571. #line 1572 "configure"
  1572. #include "confdefs.h"
  1573. find_stack_direction ()
  1574. {
  1575.   static char *addr = 0;
  1576.   auto char dummy;
  1577.   if (addr == 0)
  1578.     {
  1579.       addr = &dummy;
  1580.       return find_stack_direction ();
  1581.     }
  1582.   else
  1583.     return (&dummy > addr) ? 1 : -1;
  1584. }
  1585. main ()
  1586. {
  1587.   exit (find_stack_direction() < 0);
  1588. }
  1589. EOF
  1590. eval $ac_link
  1591. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1592.   ac_cv_c_stack_direction=1
  1593. else
  1594.   ac_cv_c_stack_direction=-1
  1595. fi
  1596. fi
  1597. rm -fr conftest*
  1598. fi
  1599.  
  1600. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1601. cat >> confdefs.h <<EOF
  1602. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1603. EOF
  1604.  
  1605. fi
  1606.  
  1607. fi
  1608. cat >> confdefs.h <<\EOF
  1609. #define REGEX_MALLOC 1
  1610. EOF
  1611.  
  1612. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1613. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1614.   echo $ac_n "(cached) $ac_c" 1>&6
  1615. else
  1616.   cat > conftest.$ac_ext <<EOF
  1617. #line 1618 "configure"
  1618. #include "confdefs.h"
  1619. /* System header to define __stub macros and hopefully few prototypes,
  1620.     which can conflict with char vprintf(); below.  */
  1621. #include <assert.h>
  1622. /* Override any gcc2 internal prototype to avoid an error.  */
  1623. char vprintf();
  1624.  
  1625. int main() { return 0; }
  1626. int t() {
  1627.  
  1628. /* The GNU C library defines this for functions which it implements
  1629.     to always fail with ENOSYS.  Some functions are actually named
  1630.     something starting with __ and the normal name is an alias.  */
  1631. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1632. choke me
  1633. #else
  1634. vprintf();
  1635. #endif
  1636.  
  1637. ; return 0; }
  1638. EOF
  1639. if eval $ac_link; then
  1640.   rm -rf conftest*
  1641.   eval "ac_cv_func_vprintf=yes"
  1642. else
  1643.   rm -rf conftest*
  1644.   eval "ac_cv_func_vprintf=no"
  1645. fi
  1646. rm -f conftest*
  1647.  
  1648. fi
  1649. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1650.   echo "$ac_t""yes" 1>&6
  1651.   cat >> confdefs.h <<\EOF
  1652. #define HAVE_VPRINTF 1
  1653. EOF
  1654.  
  1655. else
  1656.   echo "$ac_t""no" 1>&6
  1657. fi
  1658.  
  1659. if test "$ac_cv_func_vprintf" != yes; then
  1660. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1661. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1662.   echo $ac_n "(cached) $ac_c" 1>&6
  1663. else
  1664.   cat > conftest.$ac_ext <<EOF
  1665. #line 1666 "configure"
  1666. #include "confdefs.h"
  1667. /* System header to define __stub macros and hopefully few prototypes,
  1668.     which can conflict with char _doprnt(); below.  */
  1669. #include <assert.h>
  1670. /* Override any gcc2 internal prototype to avoid an error.  */
  1671. char _doprnt();
  1672.  
  1673. int main() { return 0; }
  1674. int t() {
  1675.  
  1676. /* The GNU C library defines this for functions which it implements
  1677.     to always fail with ENOSYS.  Some functions are actually named
  1678.     something starting with __ and the normal name is an alias.  */
  1679. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1680. choke me
  1681. #else
  1682. _doprnt();
  1683. #endif
  1684.  
  1685. ; return 0; }
  1686. EOF
  1687. if eval $ac_link; then
  1688.   rm -rf conftest*
  1689.   eval "ac_cv_func__doprnt=yes"
  1690. else
  1691.   rm -rf conftest*
  1692.   eval "ac_cv_func__doprnt=no"
  1693. fi
  1694. rm -f conftest*
  1695.  
  1696. fi
  1697. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1698.   echo "$ac_t""yes" 1>&6
  1699.   cat >> confdefs.h <<\EOF
  1700. #define HAVE_DOPRNT 1
  1701. EOF
  1702.  
  1703. else
  1704.   echo "$ac_t""no" 1>&6
  1705. fi
  1706.  
  1707. fi
  1708.  
  1709.  
  1710. for ac_func in memset memcpy memcmp fmod random strchr strerror strftime strncasecmp strtod system tzset
  1711. do
  1712. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1713. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1714.   echo $ac_n "(cached) $ac_c" 1>&6
  1715. else
  1716.   cat > conftest.$ac_ext <<EOF
  1717. #line 1718 "configure"
  1718. #include "confdefs.h"
  1719. /* System header to define __stub macros and hopefully few prototypes,
  1720.     which can conflict with char $ac_func(); below.  */
  1721. #include <assert.h>
  1722. /* Override any gcc2 internal prototype to avoid an error.  */
  1723. char $ac_func();
  1724.  
  1725. int main() { return 0; }
  1726. int t() {
  1727.  
  1728. /* The GNU C library defines this for functions which it implements
  1729.     to always fail with ENOSYS.  Some functions are actually named
  1730.     something starting with __ and the normal name is an alias.  */
  1731. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1732. choke me
  1733. #else
  1734. $ac_func();
  1735. #endif
  1736.  
  1737. ; return 0; }
  1738. EOF
  1739. if eval $ac_link; then
  1740.   rm -rf conftest*
  1741.   eval "ac_cv_func_$ac_func=yes"
  1742. else
  1743.   rm -rf conftest*
  1744.   eval "ac_cv_func_$ac_func=no"
  1745. fi
  1746. rm -f conftest*
  1747.  
  1748. fi
  1749. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1750.   echo "$ac_t""yes" 1>&6
  1751.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1752.   cat >> confdefs.h <<EOF
  1753. #define $ac_tr_func 1
  1754. EOF
  1755.  
  1756. else
  1757.   echo "$ac_t""no" 1>&6
  1758. fi
  1759. done
  1760.  
  1761.  
  1762. echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
  1763. if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
  1764.   echo $ac_n "(cached) $ac_c" 1>&6
  1765. else
  1766.   if test "$cross_compiling" = yes; then
  1767.   { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
  1768. else
  1769. cat > conftest.$ac_ext <<EOF
  1770. #line 1771 "configure"
  1771. #include "confdefs.h"
  1772.  
  1773. /*
  1774.  * If this system has a BSD-style getpgrp(),
  1775.  * which takes a pid argument, exit unsuccessfully.
  1776.  *
  1777.  * Snarfed from Chet Ramey's bash pgrp.c test program
  1778.  */
  1779. #include <stdio.h>
  1780. #include <sys/types.h>
  1781.  
  1782. int     pid;
  1783. int     pg1, pg2, pg3, pg4;
  1784. int     ng, np, s, child;
  1785.  
  1786. main()
  1787. {
  1788.         pid = getpid();
  1789.         pg1 = getpgrp(0);
  1790.         pg2 = getpgrp();
  1791.         pg3 = getpgrp(pid);
  1792.         pg4 = getpgrp(1);
  1793.  
  1794.         /*
  1795.          * If all of these values are the same, it's pretty sure that
  1796.          * we're on a system that ignores getpgrp's first argument.
  1797.          */
  1798.         if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
  1799.                 exit(0);
  1800.  
  1801.         child = fork();
  1802.         if (child < 0)
  1803.                 exit(1);
  1804.         else if (child == 0) {
  1805.                 np = getpid();
  1806.                 /*
  1807.                  * If this is Sys V, this will not work; pgrp will be
  1808.                  * set to np because setpgrp just changes a pgrp to be
  1809.                  * the same as the pid.
  1810.                  */
  1811.                 setpgrp(np, pg1);
  1812.                 ng = getpgrp(0);        /* Same result for Sys V and BSD */
  1813.                 if (ng == pg1) {
  1814.                         exit(1);
  1815.                 } else {
  1816.                         exit(0);
  1817.                 }
  1818.         } else {
  1819.                 wait(&s);
  1820.                 exit(s>>8);
  1821.         }
  1822. }
  1823.  
  1824. EOF
  1825. eval $ac_link
  1826. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1827.   ac_cv_func_getpgrp_void=yes
  1828. else
  1829.   ac_cv_func_getpgrp_void=no
  1830. fi
  1831. fi
  1832. rm -fr conftest*
  1833.  
  1834. fi
  1835.  
  1836. echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
  1837. if test $ac_cv_func_getpgrp_void = yes; then
  1838.   cat >> confdefs.h <<\EOF
  1839. #define GETPGRP_VOID 1
  1840. EOF
  1841.  
  1842. fi
  1843.  
  1844.  
  1845. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  1846. if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  1847.   echo $ac_n "(cached) $ac_c" 1>&6
  1848. else
  1849.   cat > conftest.$ac_ext <<EOF
  1850. #line 1851 "configure"
  1851. #include "confdefs.h"
  1852. #include <sys/types.h>
  1853. #include <sys/stat.h>
  1854. int main() { return 0; }
  1855. int t() {
  1856. struct stat s; s.st_blksize;
  1857. ; return 0; }
  1858. EOF
  1859. if eval $ac_compile; then
  1860.   rm -rf conftest*
  1861.   ac_cv_struct_st_blksize=yes
  1862. else
  1863.   rm -rf conftest*
  1864.   ac_cv_struct_st_blksize=no
  1865. fi
  1866. rm -f conftest*
  1867.  
  1868. fi
  1869.  
  1870. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  1871. if test $ac_cv_struct_st_blksize = yes; then
  1872.   cat >> confdefs.h <<\EOF
  1873. #define HAVE_ST_BLKSIZE 1
  1874. EOF
  1875.  
  1876. fi
  1877.  
  1878. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1879. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1880.   echo $ac_n "(cached) $ac_c" 1>&6
  1881. else
  1882.   cat > conftest.$ac_ext <<EOF
  1883. #line 1884 "configure"
  1884. #include "confdefs.h"
  1885. #include <sys/types.h>
  1886. #include <sys/time.h>
  1887. #include <time.h>
  1888. int main() { return 0; }
  1889. int t() {
  1890. struct tm *tp;
  1891. ; return 0; }
  1892. EOF
  1893. if eval $ac_compile; then
  1894.   rm -rf conftest*
  1895.   ac_cv_header_time=yes
  1896. else
  1897.   rm -rf conftest*
  1898.   ac_cv_header_time=no
  1899. fi
  1900. rm -f conftest*
  1901.  
  1902. fi
  1903.  
  1904. echo "$ac_t""$ac_cv_header_time" 1>&6
  1905. if test $ac_cv_header_time = yes; then
  1906.   cat >> confdefs.h <<\EOF
  1907. #define TIME_WITH_SYS_TIME 1
  1908. EOF
  1909.  
  1910. fi
  1911.  
  1912. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1913. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1914.   echo $ac_n "(cached) $ac_c" 1>&6
  1915. else
  1916.   cat > conftest.$ac_ext <<EOF
  1917. #line 1918 "configure"
  1918. #include "confdefs.h"
  1919. #include <sys/types.h>
  1920. #include <time.h>
  1921. int main() { return 0; }
  1922. int t() {
  1923. struct tm *tp; tp->tm_sec;
  1924. ; return 0; }
  1925. EOF
  1926. if eval $ac_compile; then
  1927.   rm -rf conftest*
  1928.   ac_cv_struct_tm=time.h
  1929. else
  1930.   rm -rf conftest*
  1931.   ac_cv_struct_tm=sys/time.h
  1932. fi
  1933. rm -f conftest*
  1934.  
  1935. fi
  1936.  
  1937. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1938. if test $ac_cv_struct_tm = sys/time.h; then
  1939.   cat >> confdefs.h <<\EOF
  1940. #define TM_IN_SYS_TIME 1
  1941. EOF
  1942.  
  1943. fi
  1944.  
  1945. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1946. if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1947.   echo $ac_n "(cached) $ac_c" 1>&6
  1948. else
  1949.   cat > conftest.$ac_ext <<EOF
  1950. #line 1951 "configure"
  1951. #include "confdefs.h"
  1952. #include <sys/types.h>
  1953. #include <$ac_cv_struct_tm>
  1954. int main() { return 0; }
  1955. int t() {
  1956. struct tm tm; tm.tm_zone;
  1957. ; return 0; }
  1958. EOF
  1959. if eval $ac_compile; then
  1960.   rm -rf conftest*
  1961.   ac_cv_struct_tm_zone=yes
  1962. else
  1963.   rm -rf conftest*
  1964.   ac_cv_struct_tm_zone=no
  1965. fi
  1966. rm -f conftest*
  1967.  
  1968. fi
  1969.  
  1970. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1971. if test "$ac_cv_struct_tm_zone" = yes; then
  1972.   cat >> confdefs.h <<\EOF
  1973. #define HAVE_TM_ZONE 1
  1974. EOF
  1975.  
  1976. else
  1977.   echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1978. if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1979.   echo $ac_n "(cached) $ac_c" 1>&6
  1980. else
  1981.   cat > conftest.$ac_ext <<EOF
  1982. #line 1983 "configure"
  1983. #include "confdefs.h"
  1984. #include <time.h>
  1985. #ifndef tzname /* For SGI.  */
  1986. extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1987. #endif
  1988. int main() { return 0; }
  1989. int t() {
  1990. atoi(*tzname);
  1991. ; return 0; }
  1992. EOF
  1993. if eval $ac_link; then
  1994.   rm -rf conftest*
  1995.   ac_cv_var_tzname=yes
  1996. else
  1997.   rm -rf conftest*
  1998.   ac_cv_var_tzname=no
  1999. fi
  2000. rm -f conftest*
  2001.  
  2002. fi
  2003.  
  2004. echo "$ac_t""$ac_cv_var_tzname" 1>&6
  2005.   if test $ac_cv_var_tzname = yes; then
  2006.     cat >> confdefs.h <<\EOF
  2007. #define HAVE_TZNAME 1
  2008. EOF
  2009.  
  2010.   fi
  2011. fi
  2012.  
  2013.  
  2014. echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
  2015. if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  2016.   echo $ac_n "(cached) $ac_c" 1>&6
  2017. else
  2018.   if test "$GCC" = yes; then
  2019.   # GCC predefines this symbol on systems where it applies.
  2020. cat > conftest.$ac_ext <<EOF
  2021. #line 2022 "configure"
  2022. #include "confdefs.h"
  2023. #ifdef __CHAR_UNSIGNED__
  2024.   yes
  2025. #endif
  2026.  
  2027. EOF
  2028. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2029.   egrep "yes" >/dev/null 2>&1; then
  2030.   rm -rf conftest*
  2031.   ac_cv_c_char_unsigned=yes
  2032. else
  2033.   rm -rf conftest*
  2034.   ac_cv_c_char_unsigned=no
  2035. fi
  2036. rm -f conftest*
  2037.  
  2038. else
  2039. if test "$cross_compiling" = yes; then
  2040.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2041. else
  2042. cat > conftest.$ac_ext <<EOF
  2043. #line 2044 "configure"
  2044. #include "confdefs.h"
  2045. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  2046. #if !defined(__STDC__) || __STDC__ != 1
  2047. #define volatile
  2048. #endif
  2049. main() {
  2050.   volatile char c = 255; exit(c < 0);
  2051. }
  2052. EOF
  2053. eval $ac_link
  2054. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2055.   ac_cv_c_char_unsigned=yes
  2056. else
  2057.   ac_cv_c_char_unsigned=no
  2058. fi
  2059. fi
  2060. rm -fr conftest*
  2061. fi
  2062. fi
  2063.  
  2064. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  2065. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  2066.   cat >> confdefs.h <<\EOF
  2067. #define __CHAR_UNSIGNED__ 1
  2068. EOF
  2069.  
  2070. fi
  2071.  
  2072. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2073. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2074.   echo $ac_n "(cached) $ac_c" 1>&6
  2075. else
  2076.   cat > conftest.$ac_ext <<EOF
  2077. #line 2078 "configure"
  2078. #include "confdefs.h"
  2079.  
  2080. int main() { return 0; }
  2081. int t() {
  2082.  
  2083. /* Ultrix mips cc rejects this.  */
  2084. typedef int charset[2]; const charset x;
  2085. /* SunOS 4.1.1 cc rejects this.  */
  2086. char const *const *ccp;
  2087. char **p;
  2088. /* NEC SVR4.0.2 mips cc rejects this.  */
  2089. struct point {int x, y;};
  2090. static struct point const zero = {0,0};
  2091. /* AIX XL C 1.02.0.0 rejects this.
  2092.    It does not let you subtract one const X* pointer from another in an arm
  2093.    of an if-expression whose if-part is not a constant expression */
  2094. const char *g = "string";
  2095. ccp = &g + (g ? g-g : 0);
  2096. /* HPUX 7.0 cc rejects these. */
  2097. ++ccp;
  2098. p = (char**) ccp;
  2099. ccp = (char const *const *) p;
  2100. { /* SCO 3.2v4 cc rejects this.  */
  2101.   char *t;
  2102.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2103.  
  2104.   *t++ = 0;
  2105. }
  2106. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2107.   int x[] = {25, 17};
  2108.   const int *foo = &x[0];
  2109.   ++foo;
  2110. }
  2111. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2112.   typedef const int *iptr;
  2113.   iptr p = 0;
  2114.   ++p;
  2115. }
  2116. { /* AIX XL C 1.02.0.0 rejects this saying
  2117.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2118.   struct s { int j; const int *ap[3]; };
  2119.   struct s *b; b->j = 5;
  2120. }
  2121. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2122.   const int foo = 10;
  2123. }
  2124.  
  2125. ; return 0; }
  2126. EOF
  2127. if eval $ac_compile; then
  2128.   rm -rf conftest*
  2129.   ac_cv_c_const=yes
  2130. else
  2131.   rm -rf conftest*
  2132.   ac_cv_c_const=no
  2133. fi
  2134. rm -f conftest*
  2135.  
  2136. fi
  2137.  
  2138. echo "$ac_t""$ac_cv_c_const" 1>&6
  2139. if test $ac_cv_c_const = no; then
  2140.   cat >> confdefs.h <<\EOF
  2141. #define const 
  2142. EOF
  2143.  
  2144. fi
  2145.  
  2146.  
  2147.  
  2148. echo $ac_n "checking for ANSI stringizing capability""... $ac_c" 1>&6
  2149. if eval "test \"`echo '$''{'gawk_cv_c_stringize'+set}'`\" = set"; then
  2150.   echo $ac_n "(cached) $ac_c" 1>&6
  2151. else
  2152.   cat > conftest.$ac_ext <<EOF
  2153. #line 2154 "configure"
  2154. #include "confdefs.h"
  2155.  
  2156. #define x(y) #y
  2157.  
  2158. char *s = x(teststring);
  2159.  
  2160. EOF
  2161. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2162.   egrep "#teststring" >/dev/null 2>&1; then
  2163.   rm -rf conftest*
  2164.   gawk_cv_c_stringize=no
  2165. else
  2166.   rm -rf conftest*
  2167.   gawk_cv_c_stringize=yes
  2168. fi
  2169. rm -f conftest*
  2170.  
  2171. fi
  2172.  
  2173. if test "${gawk_cv_c_stringize}" = yes
  2174. then
  2175.     cat >> confdefs.h <<\EOF
  2176. #define HAVE_STRINGIZE 1
  2177. EOF
  2178.  
  2179. fi
  2180. echo "$ac_t""${gawk_cv_c_stringize}" 1>&6
  2181.  
  2182.  
  2183. trap '' 1 2 15
  2184. cat > confcache <<\EOF
  2185. # This file is a shell script that caches the results of configure
  2186. # tests run on this system so they can be shared between configure
  2187. # scripts and configure runs.  It is not useful on other systems.
  2188. # If it contains results you don't want to keep, you may remove or edit it.
  2189. #
  2190. # By default, configure uses ./config.cache as the cache file,
  2191. # creating it if it does not exist already.  You can give configure
  2192. # the --cache-file=FILE option to use a different cache file; that is
  2193. # what configure does when it calls configure scripts in
  2194. # subdirectories, so they share the cache.
  2195. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2196. # config.status only pays attention to the cache file if you give it the
  2197. # --recheck option to rerun configure.
  2198. #
  2199. EOF
  2200. # Ultrix sh set writes to stderr and can't be redirected directly,
  2201. # and sets the high bit in the cache file unless we assign to the vars.
  2202. (set) 2>&1 |
  2203.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2204.   >> confcache
  2205. if cmp -s $cache_file confcache; then
  2206.   :
  2207. else
  2208.   if test -w $cache_file; then
  2209.     echo "updating cache $cache_file"
  2210.     cat confcache > $cache_file
  2211.   else
  2212.     echo "not updating unwritable cache $cache_file"
  2213.   fi
  2214. fi
  2215. rm -f confcache
  2216.  
  2217. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2218.  
  2219. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2220. # Let make expand exec_prefix.
  2221. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2222.  
  2223. # Any assignment to VPATH causes Sun make to only execute
  2224. # the first set of double-colon rules, so remove it if not needed.
  2225. # If there is a colon in the path, we need to keep it.
  2226. if test "x$srcdir" = x.; then
  2227.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2228. fi
  2229.  
  2230. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2231.  
  2232. DEFS=-DHAVE_CONFIG_H
  2233.  
  2234. # Without the "./", some shells look in PATH for config.status.
  2235. : ${CONFIG_STATUS=./config.status}
  2236.  
  2237. echo creating $CONFIG_STATUS
  2238. rm -f $CONFIG_STATUS
  2239. cat > $CONFIG_STATUS <<EOF
  2240. #! /bin/sh
  2241. # Generated automatically by configure.
  2242. # Run this file to recreate the current configuration.
  2243. # This directory was configured as follows,
  2244. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2245. #
  2246. # $0 $ac_configure_args
  2247. #
  2248. # Compiler output produced by configure, useful for debugging
  2249. # configure, is in ./config.log if it exists.
  2250.  
  2251. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2252. for ac_option
  2253. do
  2254.   case "\$ac_option" in
  2255.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2256.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2257.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2258.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2259.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  2260.     exit 0 ;;
  2261.   -help | --help | --hel | --he | --h)
  2262.     echo "\$ac_cs_usage"; exit 0 ;;
  2263.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2264.   esac
  2265. done
  2266.  
  2267. ac_given_srcdir=$srcdir
  2268. ac_given_INSTALL="$INSTALL"
  2269.  
  2270. trap 'rm -fr `echo "Makefile doc/Makefile test/Makefile awklib/Makefile config.h:configh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2271. EOF
  2272. cat >> $CONFIG_STATUS <<EOF
  2273.  
  2274. # Protect against being on the right side of a sed subst in config.status.
  2275. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2276.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2277. $ac_vpsub
  2278. $extrasub
  2279. s%@CFLAGS@%$CFLAGS%g
  2280. s%@CPPFLAGS@%$CPPFLAGS%g
  2281. s%@CXXFLAGS@%$CXXFLAGS%g
  2282. s%@DEFS@%$DEFS%g
  2283. s%@LDFLAGS@%$LDFLAGS%g
  2284. s%@LIBS@%$LIBS%g
  2285. s%@exec_prefix@%$exec_prefix%g
  2286. s%@prefix@%$prefix%g
  2287. s%@program_transform_name@%$program_transform_name%g
  2288. s%@bindir@%$bindir%g
  2289. s%@sbindir@%$sbindir%g
  2290. s%@libexecdir@%$libexecdir%g
  2291. s%@datadir@%$datadir%g
  2292. s%@sysconfdir@%$sysconfdir%g
  2293. s%@sharedstatedir@%$sharedstatedir%g
  2294. s%@localstatedir@%$localstatedir%g
  2295. s%@libdir@%$libdir%g
  2296. s%@includedir@%$includedir%g
  2297. s%@oldincludedir@%$oldincludedir%g
  2298. s%@infodir@%$infodir%g
  2299. s%@mandir@%$mandir%g
  2300. s%@YACC@%$YACC%g
  2301. s%@CC@%$CC%g
  2302. s%@CPP@%$CPP%g
  2303. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2304. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2305. s%@SET_MAKE@%$SET_MAKE%g
  2306. s%@ALLOCA@%$ALLOCA%g
  2307.  
  2308. CEOF
  2309. EOF
  2310. cat >> $CONFIG_STATUS <<EOF
  2311.  
  2312. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile test/Makefile awklib/Makefile"}
  2313. EOF
  2314. cat >> $CONFIG_STATUS <<\EOF
  2315. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2316.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2317.   case "$ac_file" in
  2318.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2319.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2320.   *) ac_file_in="${ac_file}.in" ;;
  2321.   esac
  2322.  
  2323.   # Adjust relative srcdir, etc. for subdirectories.
  2324.  
  2325.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2326.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2327.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2328.     # The file is in a subdirectory.
  2329.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2330.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2331.     # A "../" for each directory in $ac_dir_suffix.
  2332.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2333.   else
  2334.     ac_dir_suffix= ac_dots=
  2335.   fi
  2336.  
  2337.   case "$ac_given_srcdir" in
  2338.   .)  srcdir=.
  2339.       if test -z "$ac_dots"; then top_srcdir=.
  2340.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2341.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2342.   *) # Relative path.
  2343.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2344.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2345.   esac
  2346.  
  2347.   case "$ac_given_INSTALL" in
  2348.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2349.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2350.   esac
  2351.   echo creating "$ac_file"
  2352.   rm -f "$ac_file"
  2353.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2354.   case "$ac_file" in
  2355.   *Makefile*) ac_comsub="1i\\
  2356. # $configure_input" ;;
  2357.   *) ac_comsub= ;;
  2358.   esac
  2359.   sed -e "$ac_comsub
  2360. s%@configure_input@%$configure_input%g
  2361. s%@srcdir@%$srcdir%g
  2362. s%@top_srcdir@%$top_srcdir%g
  2363. s%@INSTALL@%$INSTALL%g
  2364. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2365. fi; done
  2366. rm -f conftest.subs
  2367.  
  2368. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2369. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2370. #
  2371. # ac_d sets the value in "#define NAME VALUE" lines.
  2372. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2373. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2374. ac_dC='\3'
  2375. ac_dD='%g'
  2376. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2377. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2378. ac_uB='\([     ]\)%\1#\2define\3'
  2379. ac_uC=' '
  2380. ac_uD='\4%g'
  2381. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2382. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2383. ac_eB='$%\1#\2define\3'
  2384. ac_eC=' '
  2385. ac_eD='%g'
  2386.  
  2387. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:configh.in"}
  2388. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2389.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2390.   case "$ac_file" in
  2391.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2392.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2393.   *) ac_file_in="${ac_file}.in" ;;
  2394.   esac
  2395.  
  2396.   echo creating $ac_file
  2397.  
  2398.   rm -f conftest.frag conftest.in conftest.out
  2399.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2400.  
  2401. EOF
  2402.  
  2403. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2404. # the proper values into config.h.in to produce config.h.  And first:
  2405. # Protect against being on the right side of a sed subst in config.status.
  2406. # Protect against being in an unquoted here document in config.status.
  2407. rm -f conftest.vals
  2408. cat > conftest.hdr <<\EOF
  2409. s/[\\&%]/\\&/g
  2410. s%[\\$`]%\\&%g
  2411. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2412. s%ac_d%ac_u%gp
  2413. s%ac_u%ac_e%gp
  2414. EOF
  2415. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2416. rm -f conftest.hdr
  2417.  
  2418. # This sed command replaces #undef with comments.  This is necessary, for
  2419. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2420. # on some systems where configure will not decide to define it.
  2421. cat >> conftest.vals <<\EOF
  2422. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2423. EOF
  2424.  
  2425. # Break up conftest.vals because some shells have a limit on
  2426. # the size of here documents, and old seds have small limits too.
  2427. # Maximum number of lines to put in a single here document.
  2428. ac_max_here_lines=12
  2429.  
  2430. rm -f conftest.tail
  2431. while :
  2432. do
  2433.   ac_lines=`grep -c . conftest.vals`
  2434.   # grep -c gives empty output for an empty file on some AIX systems.
  2435.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2436.   # Write a limited-size here document to conftest.frag.
  2437.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2438.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2439.   echo 'CEOF
  2440.   sed -f conftest.frag conftest.in > conftest.out
  2441.   rm -f conftest.in
  2442.   mv conftest.out conftest.in
  2443. ' >> $CONFIG_STATUS
  2444.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2445.   rm -f conftest.vals
  2446.   mv conftest.tail conftest.vals
  2447. done
  2448. rm -f conftest.vals
  2449.  
  2450. cat >> $CONFIG_STATUS <<\EOF
  2451.   rm -f conftest.frag conftest.h
  2452.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2453.   cat conftest.in >> conftest.h
  2454.   rm -f conftest.in
  2455.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2456.     echo "$ac_file is unchanged"
  2457.     rm -f conftest.h
  2458.   else
  2459.     rm -f $ac_file
  2460.     mv conftest.h $ac_file
  2461.   fi
  2462. fi; done
  2463.  
  2464.  
  2465. date > stamp-h
  2466. exit 0
  2467. EOF
  2468. chmod +x $CONFIG_STATUS
  2469. rm -fr confdefs* $ac_clean_files
  2470. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2471.  
  2472.